﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" />
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/}" />
<meta name="description" content="{dede:field.description function='html2text(@me)'/}" />
<link href="{dede:global.cfg_templets_skin/}/style/dedecms.css" rel="stylesheet" media="screen" type="text/css" />
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
<script type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/js/jquery-1.9.1.min.js"></script>
<script language="javascript" type="text/javascript">

<!--
function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/member/ajax_feedback.php");
	  DedeXHTTP = null;
}
function postBadGood(ftype,fid)
{
	var taget_obj = document.getElementById(ftype+fid);
	var saveid = GetCookie('badgoodid');
	if(saveid != null)
	{
		var saveids = saveid.split(',');
		var hasid = false;
		saveid = '';
		j = 1;
		for(i=saveids.length-1;i>=0;i--)
		{
			if(saveids[i]==fid && hasid) continue;
			else {
				if(saveids[i]==fid && !hasid) hasid = true;
				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
				j++;
				if(j==10 && hasid) break;
				if(j==9 && !hasid) break;
			}
		}
		if(hasid) { alert('您刚才已表决过了喔！'); return false;}
		else saveid += ','+fid;
		SetCookie('badgoodid',saveid,1);
	}
	else
	{
		SetCookie('badgoodid',fid,1);
	}
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	myajax.SendGet2("{dede:field name='phpurl'/}/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);
}
function postDigg(ftype,aid)
{
	var taget_obj = document.getElementById('newdigg');
	var saveid = GetCookie('diggid');
	if(saveid != null)
	{
		var saveids = saveid.split(',');
		var hasid = false;
		saveid = '';
		j = 1;
		for(i=saveids.length-1;i>=0;i--)
		{
			if(saveids[i]==aid && hasid) continue;
			else {
				if(saveids[i]==aid && !hasid) hasid = true;
				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
				j++;
				if(j==20 && hasid) break;
				if(j==19 && !hasid) break;
			}
		}
		if(hasid) { alert("您已经顶过该帖，请不要重复顶帖 ！"); return; }
		else saveid += ','+aid;
		SetCookie('diggid',saveid,1);
	}
	else
	{
		SetCookie('diggid',aid,1);
	}
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	var url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action="+ftype+"&id="+aid;
	myajax.SendGet2(url);
}
function getDigg(aid)
{
	var taget_obj = document.getElementById('newdigg');
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	myajax.SendGet2("{dede:global.cfg_phpurl/}/digg_ajax.php?id="+aid);
	DedeXHTTP = null;
}
//返回顶部和右侧文章的浮动
function goTopEx(){
        var fullObj=document.getElementById("full");
		var gotopBtn=document.getElementById("gotop");
        function getScrollTop(){
                return document.documentElement.scrollTop||document.body.scrollTop;
            }
        function setScrollTop(value){
                document.documentElement.scrollTop=value;
				document.body.scrollTop=value;
            }    
		$.fixedbox_top=$(".commend").offset().top;//右侧相关文章的悬浮
		
        window.onscroll=function(){
		
			//右侧相关文章的悬浮
			if($(window).scrollTop() > $.fixedbox_top){
				$(".commend").removeClass('mt1');
				$(".commend").addClass('fixedTop');
				$("#contentRtPicAD2").addClass('contentRtPicAD2');
			}else{
				$(".commend").removeClass('fixedTop');
				$("#contentRtPicAD2").removeClass('contentRtPicAD2');
			} 
			
		
			//返回顶部的隐藏显示
			getScrollTop()>0?fullObj.style.display="":fullObj.style.display="none";
		}
        gotopBtn.onclick=function(){
            var goTop=setInterval(scrollMove,10);
            function scrollMove(){
                    setScrollTop(getScrollTop()/1.1);
                    if(getScrollTop()<1)clearInterval(goTop);
                }
        }
}

-->
</script>
</head>
<body class="articleview">
{dede:include filename="head2.htm"/}

<div class="w960 center clear mt1">

<div class="pleft">

 <div class="viewbox">
  <div class="title">
  	<div style="width:45px; height:40px; float:left; padding-top:5px; text-align:center; font-weight:bold;">
    	<div style="background-color:#BC9FD7; height:15px;">{dede:field.pubdate function="MyDate('m',@me)"/} 月</div>
        <div style="background-color:white; height:20px; padding-top:5px;">{dede:field.pubdate function="MyDate('d',@me)"/} 日</div>
    </div>
    <div>
    	<div style="margin-left:52px;"><h2>{dede:field.title/}</h2></div>
        <div>
        	  <!-- /title -->
              <div class="info"> <small>时间:</small>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}<small>来源:</small><a href="http://www.80nest.com">80窝</a><small>浏览:</small><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript' language="javascript"></script>
                <small>评论:</small>{dede:field.id runphp=’yes’}$dsql = new dedesql(false);$dsql -> SetQuery(“Select count(id) as c from dede_feedback where aid=”.@me);$row = $dsql -> getone();@me=$row['c'];{/dede:field.id}
               </div>
              <!-- /info -->
        	<span style="float:right;">{dede:field name='position' runphp='yes'}$a=mb_strlen(@me);@me=cn_substr(@me,$a-4,-1);{/dede:field}</span>
        </div>
    </div>
   	
  </div>

  <div class="content">
   <table width='100%'>
    <tr>
     <td><div id="contentMidPicAD" style="float:right; clear:both; top:0; vertical-align:top;">{dede:myad name='contentInnerAd'/}</div>
      {dede:field.body/}
      {dede:field.vote/}
     </td>
    </tr>
   </table>
  </div>
  
 <div style="width: 15px; height: 57px; left: 50%; margin-left: 215px; z-index: 100; text-align: center; position: fixed; top: 348px; display:none;" id="full">
     <a id="gotop" href="javascript:void();"><img border="0" src="{dede:global.cfg_templets_skin/}/images/btn_top.gif"></a>
     <br><br>
     <a href="#postform"><img border="0" src="{dede:global.cfg_templets_skin/}/images/btn_comment.gif"></a>
 </div>

  <!-- /content -->
  <div class="dede_pages">
   <ul class="pagelist">
    {dede:pagebreak/}
   </ul>
  </div>
  <!-- /pages -->
  <!-- //顶踩 -->
  <div class="newdigg" id="newdigg">
   <div class="diggbox digg_good" onmousemove="this.style.backgroundPosition='left bottom';" onmouseout="this.style.backgroundPosition='left top';" onclick="javascript:postDigg('good',{dede:field.id/})">
    <div class="digg_act">顶一下</div>
    <div class="digg_num">({dede:field.goodpost/})</div>
    <div class="digg_percent">
     <div class="digg_percent_bar"><span style="width:{dede:field.goodper/}%"></span></div>
     <div class="digg_percent_num">{dede:field.goodper/}%</div>
    </div>
   </div>
   <div class="diggbox digg_bad" onmousemove="this.style.backgroundPosition='right bottom';" onmouseout="this.style.backgroundPosition='right top';" onclick="javascript:postDigg('bad',{dede:field.id/})">
    <div class="digg_act">踩一下</div>
    <div class="digg_num">({dede:field.badpost/})</div>
    <div class="digg_percent">
     <div class="digg_percent_bar"><span style="width:{dede:field.badper/}%"></span></div>
     <div class="digg_percent_num">{dede:field.badper/}%</div>
    </div>
   </div>
  </div>
  <script language="javascript" type="text/javascript">getDigg({dede:field.id/});</script>
  <!-- //顶踩部份的源码结束 -->

  <div class="handle">
   <div class="context">
    <ul>
     <li style="float:left;">{dede:prenext get='pre'/}</li>
     <li style="float:right; padding-right:100px;">{dede:prenext get='next'/}</li>
    </ul>
   </div>
   <!-- /context -->
      <!-- //分享代码开始 -->
    <div style="float:left; padding-left:5px; width:100%;">{dede:bshare/}</div>
      <!-- //分享代码结束 -->
   <div class="boxoff"> </div>
   <div style="color:black;">除非注明,文章均为<a href="http://www.80nest.com">80窝</a>原创,转载请注明本文地址：http://www.80nest.com{dede:field name='arcurl'/}</div>
  </div>
  <!-- /handle -->
 </div>
 <!-- /viewbox -->
 <!-- //AJAX评论区 -->
 {dede:include file='ajaxfeedback.htm' /} </div>
<!-- //左边内容结束 -->
<!-- //右边内容开始 -->
<div class="pright">
  <div>
   <dl class="tbox">
    <dt><strong>栏目列表</strong></dt>
    <dd>
     <ul class="d6">
      {dede:channel type='son' currentstyle="
      <li><a href='~typelink~' class='thisclass'>~typename~</a></li>
      "}
      <li><a href='[field:typeurl/]'>[field:typename/]</a></li>
      {/dede:channel}
     </ul>
    </dd>
   </dl>
  </div>
  <div class="hot mt1">
   <dl class="tbox light">
    <dt class='light'><strong>相关文章</strong></dt>
    <dd class='light'>
     <ul class="c1 ico2">
      {dede:likearticle row='10' titlelen='42'}
        <li><a href="[field:arcurl/]">[field:title/]</a></li>
      {/dede:likearticle}
     </ul>
    </dd>
   </dl>
 </div>
 <div class="commend mt1">
   <dl class="tbox light">
    <dt class='light'>
    <strong>{dede:type}
       		[field:typename /]精彩推荐
      	{/dede:type}
    </strong></dt>
    <dd class='light'>
     <ul class="d4">
      {dede:arclist flag='c' titlelen=42 row=4}
      <li><a href="[field:arcurl/]">[field:title/]</a>
       <p>[field:description function='cn_substr(@me,80)'/]...</p>
      </li>
      {/dede:arclist}
     </ul>
    </dd>
   </dl>
  </div>
  <!-- /commend -->
 
<div id="contentRtPicAD2" class="">{dede:myad name='conntentRightDownAd'/}</div>
 </div><!-- /pright -->
 <!--{dede:myad name='footBottomAd'/}-->
</div>

{dede:include filename="footer.htm"/}
<!-- /footer -->
 <SCRIPT type=text/javascript>goTopEx();</SCRIPT>
</body>
</html>
